import clipboard from './clipboard/clipboard'
import drag from './el-drag-dialog/drag'
import adaptive from './el-table/adaptive'
import permission from './permission/permission'
import waves from './waves/waves'

const install = function(Vue) {
  Vue.directive('clipboard', clipboard)
  Vue.directive('el-drag-dialog', drag)
  Vue.directive('el-height-adaptive-table', adaptive)
  Vue.directive('permission', permission)
  Vue.directive('waves', waves)
}

if (window.Vue) {
  window['clipboard'] = drag
  window['el-drag-dialog'] = drag
  window['el-height-adaptive-table'] = adaptive
  window['permission'] = permission
  window['waves'] = waves
  Vue.use(install)
}

export default install
